"use strict";
exports.__esModule = true;
var a = 123; // ts 中的冒号 是对前边的那个变量的一个类型声明
var b;
// b = true
var c;
var ary = [123];
function add(q, w) {
    return q + w;
}
add(1, 1);
var ary2 = [{ age: 12, name: 345 }];
var obj = {
    age: 123,
    name: '234'
};
obj.name = '666';
// obj.age = 888
var ary3 = [{ age: 1, name: '' }];
ary3.push({
    name: '',
    age: 123,
    qqq: 234,
    www: true,
    t: 5,
    y: ''
});
ary3[0].name;
var obj2 = {
    age: 555,
    name: '',
    sex: 6
};
// let ttt:any[] = []
// let tttt:Array<any> = []
function createArray(length, value) {
    var res = [];
    for (var i = 0; i < length; i++) {
        res[i] = value;
    }
    res.push("hello");
    return res;
}
// createArray(4, 'qq')
createArray(4, 88);
